package edu.study.user.api.req.user;

import edu.study.api.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Setter
@Getter
@ApiModel("用户登录")
public class LoginReq extends BaseDto {

	private static final long serialVersionUID = 5058900829250341334L;

	/**
     * 登录名
     */
    @ApiModelProperty(value = "登录名", example = "", required = true)
    @NotNull(message = "登录名不能为空")
    private String loginName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", example = "", required = true)
    @NotNull(message = "密码不能为空")
    private String password;
}
